#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "..\ADTCommand\Command.h"
#include "..\ADTCalendarRenderer\CalendarRenderer.h"

int main() {
    // Variables
    CSString args[100];
    Calendar calendar = MakeCalendar();
    // Algorithm
    // register commands
    AddInstruction(MakeCommand("Create", &CreateCalendar));
    AddInstruction(MakeCommand("Load", &LoadCalendar));
    AddInstruction(MakeCommand("View", &View));
    AddInstruction(MakeCommand("First", &PrintFirst));
    AddInstruction(MakeCommand("Last", &PrintLast));
    AddInstruction(MakeCommand("Add", &Add));
    AddInstruction(MakeCommand("ShowCalendar", &ShowCalendar));
    AddInstruction(MakeCommand("ShowDetail", &ShowDetail));
    AddInstruction(MakeCommand("Delete", &Delete));
    AddInstruction(MakeCommand("Save", &SaveCalendar));
    // run program
    RunInstructions(&calendar, args);
    return 0;
}

